<include file="public:header" />
<!--管理员管理-->
<div class="pad_lr_10">
    <div class="J_tablelist table_list" data-acturi="{:U('admin/ajax_edit')}">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <th width="40"><input type="checkbox" name="checkall" class="J_checkall"></th>
                <th width="40">ID</th>
                <th>{:L('admin_username')}</th>
                <th>{:L('admininrole')}</th>
                <th>{:L('email')}</th>
                <th>{:L('mobile')}</th>
                <th>{:L('regtime')}</th>
                <th>{:L('lasttime')}</th>
                <th>{:L('lastip')}</th>
                <th>{:L('lastip')}</th>
                <th>{:L('status')}</th>
                <th width=100>{:L('operations_manage')}</th>
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="val" >
                <tr>
                    <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                    <td align="left">{$val.userid}</td>
                    <td align="left">{$val.username}</td>
                    <td align="left">{$role[$val['role_id']]['name']}</td>
                    <td align="left">{$val.email}</td>
                    <td align="left">{$val.mobile}</td>
                    <td align="left">{$val.regdate|date='Y-m-d H:i:s',###}</td>
                    <td align="left">{$val.lastdate|date='Y-m-d H:i:s',###}</td>
                    <td align="left">{$val.regip}</td>
                    <td align="left">{$val.lastip}</td>
                    <td align="left">
                        <if condition="$val.status eq 1">
                        <span class="glyphicon glyphicon-ok" style=" color: #00CC00;"></span>
                        </if>
                        <if condition="($val.status eq 0)">
                            <span class="glyphicon glyphicon-remove" style="color: red;"></span>
                        </if>
                    </td>
                    <td align="left">
                        <if condition="$val.status eq 1">
                        <a href="{:U('superadmin/admin/edit', array('id'=>$val['userid']))}">{:L('edit')}</a> |
                        <a href="javascript:;" class="layer_confirm" data-url="{:U('suerperadmin/admin/delete', array('id'=>$val['userid']))}" data-msg="{:sprintf(L('confirm_disabled_one'),$val['username'])}">{:L('disabled')}</a>
                        </if>
                        <if condition="$val.status eq 0">
                            <a href="javascript:;" class="layer_confirm" data-url="{:U('suerperadmin/admin/recovery', array('id'=>$val['userid']))}" data-msg="{:sprintf(L('confirm_able_one'),$val['username'])}">{:L('able')}</a>
                        </if>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
    </div>
    <div class="btn_wrap_fixed">
        <!--<label class="select_all mr10"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>-->
        <!--<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('suerperadmin/suerperadminadmin/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />-->
        <div id="pages">
            {$page}
        </div>
    </div>
</div>
<include file="public:footer" />
</body>
</html>